package org.springblade.modules.admin.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @Description 地图-救援人员详情
 * @Author ysq
 * @Date 2023/6/12
 **/
@Data
public class MapUserInfoCardDetailVO {

	@ApiModelProperty(value = "用户id")
	private Long userId;

	@ApiModelProperty(value = "头像url")
	private String avatar;

	@ApiModelProperty(value = "人员姓名")
	private String realName;

	@ApiModelProperty(value = "手机号码")
	private String phone;

	@ApiModelProperty(value = "所在组")
	private String deptName;

	@ApiModelProperty(value = "是否是电梯责任人")
	private Boolean isPrincipalUser;

	@ApiModelProperty(value = "是否已到达")
	private Boolean isArrived;

	@ApiModelProperty(value = "到达时间")
	private Date arriveTime;

	@ApiModelProperty(value = "到达经度")
	private String longitude;

	@ApiModelProperty(value = "到达纬度")
	private String latitude;

	@ApiModelProperty(value = "实时定位时间")
	private Date positionDate;

	@ApiModelProperty(value = "交通工具")
	private String vehicle;

	@ApiModelProperty(value = "用户地址")
	private String address;

	@ApiModelProperty(value = "出勤情况 0:缺勤 1:正常")
	private Integer signStatus;

	@ApiModelProperty(value = "今日任务")
	private Map<Integer, Long> planStatistics;

	public Map<Integer, Long> getPlanStatistics() {
		if (this.planStatistics == null) {
			return new HashMap<>(2);
		}
		return planStatistics;
	}
}
